You are here

public static function InsertUtility::isSourceWidget in Insert 8.2

Parameters

string $pluginId:

string|array (optional) $insertTypes:

Return value

bool

6 calls to InsertUtility::isSourceWidget()
insert_field_widget_form_alter in ./insert.module
Implements hook_field_widget_form_alter().
insert_field_widget_settings_summary_alter in ./insert.module
Implements hook_field_widget_settings_summary_alter().
insert_field_widget_third_party_settings_form in ./insert.module
Implements hook_field_widget_third_party_settings_form().
insert_media_field_widget_form_alter in modules/insert_media/insert_media.module
Implements hook_field_widget_form_alter().
insert_media_field_widget_settings_summary_alter in modules/insert_media/insert_media.module
Implements hook_field_widget_settings_summary_alter().

... See full list

File

src/Utility/InsertUtility.php, line 20

Class

InsertUtility

Namespace

Drupal\insert\Utility

Code

public static function isSourceWidget($pluginId, $insertTypes = NULL) {
  return in_array($pluginId, static::getSourceWidgets($insertTypes));
}