public function EntityFlagActionDeriver::__construct in Flag 8.4
Constructs the flag action deriver.
Parameters
\Drupal\flag\FlagServiceInterface $flag_service: The flag service.
File
- src/
Plugin/ Derivative/ EntityFlagActionDeriver.php, line 31
Class
- EntityFlagActionDeriver
- Generate flag/unflag action plugins for each flag.
Namespace
Drupal\flag\Plugin\DerivativeCode
public function __construct(FlagServiceInterface $flag_service) {
$this->flagService = $flag_service;
}