You are here

public static function EntityHandlerPluginManager::isEntityTypeConfiguration 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::isEntityTypeConfiguration()
  2. 2.0.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isEntityTypeConfiguration()

Parameters

EntityTypeInterface|string $type:

Return value

bool

7 calls to EntityHandlerPluginManager::isEntityTypeConfiguration()
EntityHandlerBase::createNew in src/Plugin/EntityHandlerBase.php
EntityResource::handleIncomingEntity in src/Plugin/rest/resource/EntityResource.php
PullEntity::getPreviewItemData in src/Plugin/rest/resource/PullEntity.php
PullIntent::__construct in src/PullIntent.php
SyncIntent constructor.
PushIntent::addDependency in src/PushIntent.php
Push the provided entity as a dependency meaning the referenced entity is available before this entity so it can be referenced on the remote site immediately like bricks or paragraphs.

... See full list

File

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

Class

EntityHandlerPluginManager
Manages discovery and instantiation of entity handler plugins.

Namespace

Drupal\cms_content_sync\Plugin\Type

Code

public static function isEntityTypeConfiguration($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\\Config\\Entity\\ConfigEntityInterface');
}