From 58b2bd9b3b83023227baa639e333de7b75cb6a50 Mon Sep 17 00:00:00 2001 From: Andy Carter Date: Tue, 23 Feb 2016 18:41:11 +0000 Subject: [PATCH] Changed `label` to `link_title` Changed option name as suggested by @josegonzalez. --- src/Listener/ViewListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Listener/ViewListener.php b/src/Listener/ViewListener.php index 3e3e632d..541318e2 100644 --- a/src/Listener/ViewListener.php +++ b/src/Listener/ViewListener.php @@ -375,7 +375,7 @@ protected function _getControllerActions() $scope = isset($config['scope']) ? $config['scope'] : 'entity'; $method = isset($config['method']) ? $config['method'] : 'GET'; - $title = !empty($config['label']) ? $config['label'] : Inflector::humanize(Inflector::underscore($actionName)); + $title = !empty($config['link_title']) ? $config['link_title'] : Inflector::humanize(Inflector::underscore($actionName)); ${$scope}[$actionName] = [ 'title' => $title, @@ -385,7 +385,7 @@ protected function _getControllerActions() 'method' => $method, 'options' => array_diff_key( $config, - array_flip(['method', 'scope', 'className', 'label']) + array_flip(['method', 'scope', 'className', 'link_title']) ) ]; if (!empty($config['callback'])) {