Commit 575a6480 authored by alexpott's avatar alexpott

Issue #2338479 by rpayanm | dawehner: Convert...

Issue #2338479 by rpayanm | dawehner: Convert \Drupal\views\Plugin\Derivative\ViewsMenuLink to use DeriverBase.
parent e3f8efb8
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverInterface;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\views\Views;
/**
......@@ -15,19 +15,7 @@
*
* @see \Drupal\views\Plugin\Menu\ViewsMenuLink
*/
class ViewsMenuLink implements DeriverInterface {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinition($derivative_id, $base_plugin_definition) {
if (!isset($this->derivatives)) {
$this->getDerivativeDefinitions($base_plugin_definition);
}
if (isset($this->derivatives[$derivative_id])) {
return $this->derivatives[$derivative_id];
}
}
class ViewsMenuLink extends DeriverBase {
/**
* {@inheritdoc}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment