You are here

class TraitTest in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/ConfigEntityRevisionsTraitTest.php \Drupal\Tests\config_entity_revisions\Unit\TraitTest
  2. 1.x tests/src/Unit/ConfigEntityRevisionsTraitTest.php \Drupal\Tests\config_entity_revisions\Unit\TraitTest

Class TraitTest.

@package Drupal\Tests\config_entity_revisions\Unit

Hierarchy

Expanded class hierarchy of TraitTest

File

tests/src/Unit/ConfigEntityRevisionsTraitTest.php, line 34

Namespace

Drupal\Tests\config_entity_revisions\Unit
View source
class TraitTest {
  use ConfigEntityRevisionsConfigEntityTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigEntityRevisionsConfigEntityTrait::$isDefaultRevision public property Whether this revision is the default one.
ConfigEntityRevisionsConfigEntityTrait::$loadedRevisionId public property The ID of the revision that was loaded.
ConfigEntityRevisionsConfigEntityTrait::$moderation_state public property The current moderation state for this revision.
ConfigEntityRevisionsConfigEntityTrait::$revision protected property The revision. 1
ConfigEntityRevisionsConfigEntityTrait::$revision_log_message protected property The revision_log_message. 1
ConfigEntityRevisionsConfigEntityTrait::adminPermission public function Return the name of the admin permission for this entity.
ConfigEntityRevisionsConfigEntityTrait::configEntityName public function The config entity name.
ConfigEntityRevisionsConfigEntityTrait::contentEntityStorage public function Get the revisions entity storage.
ConfigEntityRevisionsConfigEntityTrait::contentEntityType public function The name of the content entity type.
ConfigEntityRevisionsConfigEntityTrait::contentParameterName public function Get the name of the parameter for this content.
ConfigEntityRevisionsConfigEntityTrait::contentParentReferenceField public function Get the content's parent reference field.
ConfigEntityRevisionsConfigEntityTrait::getBundleName public function The bundle name for content entities.
ConfigEntityRevisionsConfigEntityTrait::getContentEntity public function Default revision of revisions entity that matches the config entity.
ConfigEntityRevisionsConfigEntityTrait::getContentEntityId public function Get from the configEntity the ID of the matching content entity.
ConfigEntityRevisionsConfigEntityTrait::getLoadedRevisionId public function Gets the loaded Revision ID of the entity.
ConfigEntityRevisionsConfigEntityTrait::getRevisionId public function Gets the revision identifier of the entity.
ConfigEntityRevisionsConfigEntityTrait::hasCanonicalUrl public function Return whether the entity has a canonical URL.
ConfigEntityRevisionsConfigEntityTrait::hasOwnContent public function Whether this config entity has its own content entities.
ConfigEntityRevisionsConfigEntityTrait::isDefaultRevision public function Checks if this entity is the default revision.
ConfigEntityRevisionsConfigEntityTrait::isLatestRevision public function Checks if this entity is the latest revision.
ConfigEntityRevisionsConfigEntityTrait::isNewRevision public function Determines whether a new revision should be created on save.
ConfigEntityRevisionsConfigEntityTrait::moduleName public function The module implementing config entity revisions.
ConfigEntityRevisionsConfigEntityTrait::preSaveRevision public function Acts on a revision before it gets saved.
ConfigEntityRevisionsConfigEntityTrait::previewFormId public function Return the preview form ID, if applicable.
ConfigEntityRevisionsConfigEntityTrait::revisionedEntity public function Get the revisioned entity - itself by default. 1
ConfigEntityRevisionsConfigEntityTrait::revisionsEntityName public function The content entity name in which revisions are being stored.
ConfigEntityRevisionsConfigEntityTrait::save public function Save an updated version of the entity.
ConfigEntityRevisionsConfigEntityTrait::set public function
ConfigEntityRevisionsConfigEntityTrait::setContentEntityId public function Set in the configEntity an identifier for the matching content entity.
ConfigEntityRevisionsConfigEntityTrait::setNewRevision public function Enforces an entity to be saved as a new revision.
ConfigEntityRevisionsConfigEntityTrait::settingName public function The config entity setting name in which content entity ids are stored.
ConfigEntityRevisionsConfigEntityTrait::title public function The human readable title for this entity.
ConfigEntityRevisionsConfigEntityTrait::updateLoadedRevisionId public function Updates the loaded Revision ID with the revision ID.
ConfigEntityRevisionsConfigEntityTrait::urlRouteParameters protected function Gets an array of placeholders for this entity.
ConfigEntityRevisionsConfigEntityTrait::wasDefaultRevision public function Checks whether the entity object was a default revision when it was saved.
ConfigEntityRevisionsConfigEntityTrait::__construct public function Constructs an Entity object. 1
ConfigEntityRevisionsConfigEntityTrait::__wakeup public function Restore the entity type manager after deserialisation.