Skip to content

Commit

Permalink
Changed label to link_title
Browse files Browse the repository at this point in the history
Changed option name as suggested by @josegonzalez.
  • Loading branch information
drmonkeyninja committed Feb 23, 2016
1 parent a7c16eb commit 58b2bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'])) {
Expand Down

0 comments on commit 58b2bd9

Please sign in to comment.