diff --git a/core/lib/Drupal/Core/Menu/LocalActionBase.php b/core/lib/Drupal/Core/Menu/LocalActionBase.php index ef6bc5c..e1eba91 100644 --- a/core/lib/Drupal/Core/Menu/LocalActionBase.php +++ b/core/lib/Drupal/Core/Menu/LocalActionBase.php @@ -81,6 +81,7 @@ public function getRouteName() { * {@inheritdoc} */ public function getTitle() { + // Subclasses may pull in the request or specific attributes as parameters. return $this->pluginDefinition['title']; } diff --git a/core/lib/Drupal/Core/Menu/Plugin/Derivative/StaticLocalActionDeriver.php b/core/lib/Drupal/Core/Menu/Plugin/Derivative/StaticLocalActionDeriver.php index 3b6a2c2..9a0f7c6 100644 --- a/core/lib/Drupal/Core/Menu/Plugin/Derivative/StaticLocalActionDeriver.php +++ b/core/lib/Drupal/Core/Menu/Plugin/Derivative/StaticLocalActionDeriver.php @@ -74,7 +74,7 @@ public function __construct($base_plugin_id, ModuleHandlerInterface $module_hand } /** - * Implements \Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinition(). + * {@inheritdoc} */ public function getDerivativeDefinition($derivative_id, array $base_plugin_definition) { if (!empty($this->derivatives) && !empty($this->derivatives[$derivative_id])) { @@ -90,7 +90,8 @@ public function getDerivativeDefinition($derivative_id, array $base_plugin_defin public function getDerivativeDefinitions(array $base_plugin_definition) { $parser = new Parser(); - // @todo Replace with a generic YAML discovery solution when we have one. + // @todo Replace with a generic YAML discovery solution when + // https://drupal.org/node/2050289 is complete. foreach ($this->moduleHandler->getModuleList() as $module => $filename) { $local_actions_file = DRUPAL_ROOT . '/' . dirname($filename) . '/' . $module . '.local_actions.yml'; if (file_exists($local_actions_file)) {