You are here

public function BlazyAdminFormatterBase::getExcludedFieldOptions in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Form/BlazyAdminFormatterBase.php \Drupal\blazy\Form\BlazyAdminFormatterBase::getExcludedFieldOptions()
  2. 7 src/Form/BlazyAdminFormatterBase.php \Drupal\blazy\Form\BlazyAdminFormatterBase::getExcludedFieldOptions()

Declutters options from less relevant options.

1 call to BlazyAdminFormatterBase::getExcludedFieldOptions()
BlazyAdminFormatterBase::getFieldOptions in src/Form/BlazyAdminFormatterBase.php
Returns available fields for select options.

File

src/Form/BlazyAdminFormatterBase.php, line 243

Class

BlazyAdminFormatterBase
A base for field formatter admin to have re-usable methods in one place.

Namespace

Drupal\blazy\Form

Code

public function getExcludedFieldOptions() {
  $excludes = 'field_document_size field_id field_media_in_library field_mime_type field_source field_tweet_author field_tweet_id field_tweet_url field_media_video_embed_field field_instagram_shortcode field_instagram_url';
  $excludes = explode(' ', $excludes);
  $excludes = array_combine($excludes, $excludes);
  $this->blazyManager
    ->getModuleHandler()
    ->alter('blazy_excluded_field_options', $excludes);
  return $excludes;
}