You are here

class LocalActionLinkBinding in Drupal 7 to 8/9 Module Upgrader 8

Represents a local action.

Hierarchy

Expanded class hierarchy of LocalActionLinkBinding

1 file declares its use of LocalActionLinkBinding
Links.php in src/Plugin/DMU/Converter/Links.php

File

src/Routing/LinkBinding/LocalActionLinkBinding.php, line 8

Namespace

Drupal\drupalmoduleupgrader\Routing\LinkBinding
View source
class LocalActionLinkBinding extends LinkBinding {

  /**
   * {@inheritdoc}
   */
  public function build() {
    $link = parent::build();
    $link['appears_on'][] = $this
      ->getDestination()
      ->getIdentifier();
    return $link;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LinkBinding::$destination protected property
LinkBinding::$id protected property The link ID.
LinkBinding::$index protected property Index of all other links of this type.
LinkBinding::$source protected property
LinkBinding::getDestination public function Returns the Drupal 8 route in this binding.
LinkBinding::getIdentifier public function Returns the link's plugin ID.
LinkBinding::getSource public function Returns the Drupal 7 route in this binding.
LinkBinding::onIndexed public function React when the binding is added to an index.
LinkBinding::__construct public function Constructs a LinkBinding object. 1
LocalActionLinkBinding::build public function Builds the link definition. Overrides LinkBinding::build