Search for context
- Search 7.x for context
- Search 9.5.x for context
- Search 8.9.x for context
- Search 11.x for context
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Context | class | core/ |
A Drupal specific context wrapper class. |
Context | class | core/ |
A generic context class for wrapping data a plugin needs to operate. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
ContextInterface.php | file | core/ |
|
ContextInterface::addCacheableDependency | function | core/ |
Adds a dependency on an object: merges its cacheability metadata. |
ContextInterface::createFromContext | function | core/ |
Creates a new context with a different value. |
ContextInterface::getConstraints | function | core/ |
Gets a list of validation constraints. |
ContextInterface::getContextData | function | core/ |
Gets the context value as typed data object. |
ContextInterface::getContextDefinition | function | core/ |
|
ContextInterface::getContextDefinition | function | core/ |
Gets the provided definition that the context must conform to. |
ContextInterface::getContextValue | function | core/ |
Gets the context value. |
ContextInterface::hasContextValue | function | core/ |
Returns whether the context has a value. |
ContextInterface::validate | function | core/ |
Validates the set context value. |
ContextPluginTest | class | core/ |
Tests that contexts are properly set and working within plugins. |
ContextPluginTest.php | file | core/ |
|
ContextPluginTest::$modules | property | core/ |
Modules to install. |
ContextPluginTest::testContext | function | core/ |
Tests basic context definition and value getters and setters. |
ContextProviderInterface | interface | core/ |
Defines an interface for providing plugin contexts. |
ContextProviderInterface.php | file | core/ |
|
ContextProviderInterface::getAvailableContexts | function | core/ |
Gets all available contexts for the purposes of configuration. |
ContextProviderInterface::getRuntimeContexts | function | core/ |
Gets runtime context values for the given context IDs. |
ContextProvidersPass | class | core/ |
Adds the context provider service IDs to the context manager. |
ContextProvidersPass.php | file | core/ |
|
ContextProvidersPass::process | function | core/ |
Passes the service IDs of all context providers to the context repository. |
ContextRepositoryInterface | interface | core/ |
Offers a global context repository. |
ContextRepositoryInterface.php | file | core/ |
|
ContextRepositoryInterface::getAvailableContexts | function | core/ |
Gets all available contexts for the purposes of configuration. |
ContextRepositoryInterface::getRuntimeContexts | function | core/ |
Gets runtime context values for the given context IDs. |
ContextTest | class | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Context\Context @group Plugin |
ContextTest | class | core/ |
@coversDefaultClass \Drupal\Component\Plugin\Context\Context @group Plugin |
ContextTest.php | file | core/ |
|
ContextTest.php | file | core/ |
|
ContextTest::$contextDefinition | property | core/ |
The mocked context definition object. |
ContextTest::$typedData | property | core/ |
The mocked Typed Data object. |
ContextTest::$typedDataManager | property | core/ |
The mocked Typed Data manager. |
ContextTest::providerGetContextValue | function | core/ |
Data provider for testGetContextValue. |
ContextTest::providerHasContextValue | function | core/ |
Data provider for testHasContextValue. |
ContextTest::setUp | function | core/ |
|
ContextTest::setUpDefaultValue | function | core/ |
Set up mocks for the getDefaultValue() method call. |
ContextTest::testDefaultDataValue | function | core/ |
@covers ::getContextData |
ContextTest::testDefaultValue | function | core/ |
@covers ::getContextValue |
ContextTest::testDefaultValue | function | core/ |
@covers ::getContextValue |
ContextTest::testGetContextValue | function | core/ |
@covers ::getContextValue @dataProvider providerGetContextValue |
ContextTest::testHasContextValue | function | core/ |
@covers ::hasContextValue @dataProvider providerHasContextValue |
ContextTest::testNullDataValue | function | core/ |
@covers ::getContextData |
ContextTest::testSetContextValueCacheableDependency | function | core/ |
@covers ::setContextValue |
ContextTest::testSetContextValueTypedData | function | core/ |
@covers ::setContextValue |
ContextTypedDataTest | class | core/ |
Tests that contexts work properly with the typed data manager. |
ContextTypedDataTest.php | file | core/ |
|
ContextTypedDataTest::providerHasContextValue | function | core/ |
Data provider for testHasContextValue. |
ContextTypedDataTest::testGetContextValue | function | core/ |
Tests that getting a context value does not throw fatal errors. |
ContextTypedDataTest::testHasContextValue | function | core/ |
@covers ::hasContextValue @dataProvider providerHasContextValue |
ContextTypedDataTest::testSerialize | function | core/ |
Tests that contexts can be serialized. |
Pagination
- Previous page
- Page 11
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.