State API |
group |
core/core.api.php |
Information about the State API. |
State.php |
file |
core/lib/Drupal/Core/State/State.php |
|
State.php |
file |
core/modules/workflows/src/State.php |
|
State::$cache |
property |
core/lib/Drupal/Core/State/State.php |
Static state cache. |
State::$id |
property |
core/modules/workflows/src/State.php |
The state's ID. |
State::$keyValueStore |
property |
core/lib/Drupal/Core/State/State.php |
The key value store to use. |
State::$label |
property |
core/modules/workflows/src/State.php |
The state's label. |
State::$weight |
property |
core/modules/workflows/src/State.php |
The state's weight. |
State::$workflow |
property |
core/modules/workflows/src/State.php |
The workflow the state is attached to. |
State::canTransitionTo |
function |
core/modules/workflows/src/State.php |
|
State::delete |
function |
core/lib/Drupal/Core/State/State.php |
Deletes an item. |
State::deleteMultiple |
function |
core/lib/Drupal/Core/State/State.php |
Deletes multiple items. |
State::get |
function |
core/lib/Drupal/Core/State/State.php |
Returns the stored value for a given key. |
State::getMultiple |
function |
core/lib/Drupal/Core/State/State.php |
Returns the stored key/value pairs for a given set of keys. |
State::getTransitions |
function |
core/modules/workflows/src/State.php |
|
State::getTransitionTo |
function |
core/modules/workflows/src/State.php |
|
State::id |
function |
core/modules/workflows/src/State.php |
|
State::label |
function |
core/modules/workflows/src/State.php |
|
State::labelCallback |
function |
core/modules/workflows/src/State.php |
Helper method to convert a State value object to a label. |
State::resetCache |
function |
core/lib/Drupal/Core/State/State.php |
Resets the static cache. |
State::set |
function |
core/lib/Drupal/Core/State/State.php |
Saves a value for a given key. |
State::setMultiple |
function |
core/lib/Drupal/Core/State/State.php |
Saves key/value pairs. |
State::weight |
function |
core/modules/workflows/src/State.php |
|
State::__construct |
function |
core/modules/workflows/src/State.php |
State constructor. |
State::__construct |
function |
core/lib/Drupal/Core/State/State.php |
Constructs a State object. |
StateFileExistsTest |
class |
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php |
Tests that core modules have a migrate_drupal.yml file as needed. |
StateFileExistsTest.php |
file |
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php |
|
StateFileExistsTest::$modules |
property |
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php |
|
StateFileExistsTest::$stateFileRequired |
property |
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php |
Modules that should have a migrate_drupal.yml file. |
StateFileExistsTest::testMigrationState |
function |
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php |
Tests that the migrate_drupal.yml files exist as needed. |
StateFormatterTest |
class |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
Test the state field formatter. |
StateFormatterTest.php |
file |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
|
StateFormatterTest::$modules |
property |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
Modules to enable. |
StateFormatterTest::formatterTestCases |
function |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
Test cases for testStateFieldFormatter(). |
StateFormatterTest::setUp |
function |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
|
StateFormatterTest::testStateFieldFormatter |
function |
core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php |
Tests the embed field. |
StateInterface |
interface |
core/modules/workflows/src/StateInterface.php |
An interface for state value objects. |
StateInterface |
interface |
core/lib/Drupal/Core/State/StateInterface.php |
Defines the interface for the state system. |
StateInterface.php |
file |
core/lib/Drupal/Core/State/StateInterface.php |
|
StateInterface.php |
file |
core/modules/workflows/src/StateInterface.php |
|
StateInterface::canTransitionTo |
function |
core/modules/workflows/src/StateInterface.php |
Determines if the state can transition to the provided state ID. |
StateInterface::delete |
function |
core/lib/Drupal/Core/State/StateInterface.php |
Deletes an item. |
StateInterface::deleteMultiple |
function |
core/lib/Drupal/Core/State/StateInterface.php |
Deletes multiple items. |
StateInterface::get |
function |
core/lib/Drupal/Core/State/StateInterface.php |
Returns the stored value for a given key. |
StateInterface::getMultiple |
function |
core/lib/Drupal/Core/State/StateInterface.php |
Returns the stored key/value pairs for a given set of keys. |
StateInterface::getTransitions |
function |
core/modules/workflows/src/StateInterface.php |
Gets all the possible transition objects for the state. |
StateInterface::getTransitionTo |
function |
core/modules/workflows/src/StateInterface.php |
Gets the Transition object for the provided state ID. |
StateInterface::id |
function |
core/modules/workflows/src/StateInterface.php |
Gets the state's ID. |
StateInterface::label |
function |
core/modules/workflows/src/StateInterface.php |
Gets the state's label. |
StateInterface::PLUGIN_FORM_KEY |
constant |
core/modules/workflows/src/StateInterface.php |
The key of the state plugin form. |