You are here

public static function EntityHandlerPluginManager::isEntityTypeFieldable in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isEntityTypeFieldable()
  2. 2.0.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isEntityTypeFieldable()

Parameters

EntityTypeInterface|string $type:

Return value

bool

9 calls to EntityHandlerPluginManager::isEntityTypeFieldable()
EntityHandlerPluginManager::getEntityTypeInfo in src/Plugin/Type/EntityHandlerPluginManager.php
Flow::getEntityTypeVersion in src/Entity/Flow.php
Get a unique version hash for the configuration of the provided entity type and bundle.
FlowForm::getCurrentValues in src/Form/FlowForm.php
Get the current values for the config entity. Data is collected in the following order:
ManualPull::content in src/Controller/ManualPull.php
Render the content synchronization Angular frontend.
PullEntity::get in src/Plugin/rest/resource/PullEntity.php
Responds to entity GET requests.

... See full list

File

src/Plugin/Type/EntityHandlerPluginManager.php, line 48

Class

EntityHandlerPluginManager
Manages discovery and instantiation of entity handler plugins.

Namespace

Drupal\cms_content_sync\Plugin\Type

Code

public static function isEntityTypeFieldable($type) {
  if (is_string($type)) {

    /**
     * @var \Drupal\Core\Entity\EntityTypeManager $entityTypeManager
     */
    $entityTypeManager = \Drupal::service('entity_type.manager');
    $type = $entityTypeManager
      ->getDefinition($type);
  }
  return $type
    ->entityClassImplements('Drupal\\Core\\Entity\\FieldableEntityInterface');
}