You are here

protected function UpdateUtils::getUpdateTypeDefinition in Scheduled Updates 8

Get the entity definition for the entity to be updated.

Parameters

\Drupal\scheduled_updates\ScheduledUpdateTypeInterface $scheduledUpdateType:

Return value

array|\Drupal\Core\Entity\EntityTypeInterface|null

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

4 calls to UpdateUtils::getUpdateTypeDefinition()
UpdateUtils::supportsOwner in src/UpdateUtils.php
Determines if the entity type being updated supports ownership.
UpdateUtils::supportsRevisionBundleDefault in src/UpdateUtils.php
Determine if the entity type being update support default revision setting.
UpdateUtils::supportsRevisionOwner in src/UpdateUtils.php
Determines if entity type being updated supports Revision Ownership.
UpdateUtils::supportsRevisionUpdates in src/UpdateUtils.php
Determine a scheduled update type supports creating new revisions on update.

File

src/UpdateUtils.php, line 191

Class

UpdateUtils
Service to determine information about Scheduled Update Types.

Namespace

Drupal\scheduled_updates

Code

protected function getUpdateTypeDefinition(ScheduledUpdateTypeInterface $scheduledUpdateType) {
  if ($update_entity_type = $scheduledUpdateType
    ->getUpdateEntityType()) {
    return $this->entityTypeManager
      ->getDefinition($update_entity_type);
  }
  return NULL;
}