You are here

interface ScheduledTransitionsUtilityInterface in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/ScheduledTransitionsUtilityInterface.php \Drupal\scheduled_transitions\ScheduledTransitionsUtilityInterface

Utilities for Scheduled Transitions module.

Hierarchy

Expanded class hierarchy of ScheduledTransitionsUtilityInterface

All classes that implement ScheduledTransitionsUtilityInterface

2 files declare their use of ScheduledTransitionsUtilityInterface
ScheduledTransitionsSettingsForm.php in src/Form/ScheduledTransitionsSettingsForm.php
SupportsContentModerationAccessCheck.php in src/Access/SupportsContentModerationAccessCheck.php

File

src/ScheduledTransitionsUtilityInterface.php, line 12

Namespace

Drupal\scheduled_transitions
View source
interface ScheduledTransitionsUtilityInterface {

  /**
   * Get scheduled transitions for an entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   An entity.
   *
   * @return \Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface[]
   *   An array of scheduled transitions.
   */
  public function getTransitions(EntityInterface $entity) : array;

  /**
   * Get list of entity type/bundles scheduled transitions can work with.
   *
   * @return array
   *   Arrays of bundles keyed by entity type.
   */
  public function getApplicableBundles() : array;

  /**
   * Get list of entity type/bundles scheduled transitions are enabled on.
   *
   * @return array
   *   Arrays of bundles keyed by entity type.
   */
  public function getBundles() : array;

}

Members

Namesort descending Modifiers Type Description Overrides
ScheduledTransitionsUtilityInterface::getApplicableBundles public function Get list of entity type/bundles scheduled transitions can work with. 1
ScheduledTransitionsUtilityInterface::getBundles public function Get list of entity type/bundles scheduled transitions are enabled on. 1
ScheduledTransitionsUtilityInterface::getTransitions public function Get scheduled transitions for an entity. 1