You are here

public function AJAXactionLink::getAsFlagLink in Flag Lists 4.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/ActionLink/AJAXactionLink.php \Drupal\flag_lists\Plugin\ActionLink\AJAXactionLink::getAsFlagLink()

Currently a stub only.

File

src/Plugin/ActionLink/AJAXactionLink.php, line 29

Class

AJAXactionLink
Provides the AJAX link type.

Namespace

Drupal\flag_lists\Plugin\ActionLink

Code

public function getAsFlagLink(FlagInterface $flag, EntityInterface $entity) {
  $build = parent::getAsFlagLink($flag, $entity);

  // $build['#flagging_collection'] = 'text'.
  return $build;
}