function LocalTaskInterface::getActive

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalTaskInterface.php \Drupal\Core\Menu\LocalTaskInterface::getActive()
  2. 8.9.x core/lib/Drupal/Core/Menu/LocalTaskInterface.php \Drupal\Core\Menu\LocalTaskInterface::getActive()
  3. 11.x core/lib/Drupal/Core/Menu/LocalTaskInterface.php \Drupal\Core\Menu\LocalTaskInterface::getActive()

Gets the active status.

Return value

bool TRUE if the local task is active, FALSE otherwise.

See also

\Drupal\system\Plugin\MenuLocalTaskInterface::setActive()

1 method overrides LocalTaskInterface::getActive()
LocalTaskDefault::getActive in core/lib/Drupal/Core/Menu/LocalTaskDefault.php
Gets the active status.

File

core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 86

Class

LocalTaskInterface
Defines an interface for menu local tasks.

Namespace

Drupal\Core\Menu

Code

public function getActive();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.