You are here

public function BlazyAdminFormatterBase::getExcludedFieldOptions in Blazy 7

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

Declutters options from less relevant options.

1 call to BlazyAdminFormatterBase::getExcludedFieldOptions()
BlazyAdminFormatterBase::getFieldOptionsInternal in src/Form/BlazyAdminFormatterBase.php
Helper function to get list of supported field base on field_types.

File

src/Form/BlazyAdminFormatterBase.php, line 278

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);
  drupal_alter('blazy_excluded_field_options', $excludes);
  return $excludes;
}