You are here

protected function CommentFlagType::getExtraPermissionsOptions in Flag 8.4

Defines options for extra permissions.

Return value

array An array of options suitable for FormAPI.

Overrides EntityFlagType::getExtraPermissionsOptions

File

src/Plugin/Flag/CommentFlagType.php, line 22

Class

CommentFlagType
Provides a flag type for comments.

Namespace

Drupal\flag\Plugin\Flag

Code

protected function getExtraPermissionsOptions() {
  $options = parent::getExtraPermissionsOptions();
  $options['parent_owner'] = $this
    ->t("Permissions based on ownership of a comment's parent entity.");
  return $options;
}