Search for ensure

  1. Search 7.x for ensure
  2. Search 9.5.x for ensure
  3. Search 8.9.x for ensure
  4. Search 10.3.x for ensure
  5. Other projects
Title Object type File name Summary
BatchStorage::ensureTableExists function core/lib/Drupal/Core/Batch/BatchStorage.php Check if the table exists and create it if not.
BrokenHandlerTrait::ensureMyTable function core/modules/views/src/Plugin/views/BrokenHandlerTrait.php Ensures that the main table for this handler is in the query.
ClassLoaderTest::$apcuEnsureUniquePrefix property core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php The flag to set 'apcu_ensure_unique_prefix' setting.
Composer::ensureComposerVersion function composer/Composer.php Ensure that the minimum required version of Composer is running.
ComposerTest::testEnsureComposerVersion function core/tests/Drupal/Tests/Composer/ComposerTest.php Verify that Composer::ensureComposerVersion() doesn't break.
ComposerTest::testEnsurePhpConfiguredVersion function core/tests/Drupal/Tests/Composer/ComposerTest.php Ensure that the configured php version matches the minimum php version.
ComputedItemListTrait::ensureComputedValue function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php Ensures that values are only computed once.
DatabaseBackend::ensureBinExists function core/lib/Drupal/Core/Cache/DatabaseBackend.php Check if the cache bin exists and create it if not.
DatabaseBackend::ensureTableExists function core/lib/Drupal/Core/Flood/DatabaseBackend.php Check if the flood table exists and create it if not.
DatabaseCacheTagsChecksum::ensureTableExists function core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Check if the cache tags table exists and create it if not.
DatabaseLockBackend::ensureTableExists function core/lib/Drupal/Core/Lock/DatabaseLockBackend.php Check if the semaphore table exists and create it if not.
DatabaseQueue::ensureTableExists function core/lib/Drupal/Core/Queue/DatabaseQueue.php Check if the table exists and create it if not.
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/Config/DatabaseStorage.php Check if the config table exists and create it if not.
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php Check if the table exists and create it if not.
DatabaseTestBase::ensureSampleDataNull function core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php Sets up tables for NULL handling.
EnsurePHPStanVersionsMatchTest class core/tests/PHPStan/tests/EnsurePHPStanVersionsMatchTest.php Tests that PHPStan versions match.
EnsurePHPStanVersionsMatchTest.php file core/tests/PHPStan/tests/EnsurePHPStanVersionsMatchTest.php
EnsurePHPStanVersionsMatchTest::testVersions function core/tests/PHPStan/tests/EnsurePHPStanVersionsMatchTest.php
EntityDisplayWithLayoutInterface::ensureLayout function core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php Ensures this entity has a layout.
EntityListBuilder::ensureDestination function core/lib/Drupal/Core/Entity/EntityListBuilder.php Ensures that a destination is present on the given URL.
FieldLayoutEntityDisplayTrait::ensureLayout function core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
FileStorage::ensureDirectory function core/lib/Drupal/Component/PhpStorage/FileStorage.php Ensures the directory exists, has the right permissions, and a .htaccess.
FileStorage::ensureStorage function core/lib/Drupal/Core/Config/FileStorage.php Check if the directory exists and create it if not.
FileSystemTest::testEnsureFileExistsBeforeCopy function core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php @covers ::copy
FileUpload::ensureFileUploadAccess function core/modules/jsonapi/src/Controller/FileUpload.php Ensures that the given account is allowed to upload a file.
FunctionalTestSetupTrait::$apcuEnsureUniquePrefix property core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php The flag to set 'apcu_ensure_unique_prefix' setting.
HandlerBase::ensureMyTable function core/modules/views/src/Plugin/views/HandlerBase.php Ensures that the main table for this handler is in the query.
HtaccessWriter::ensure function core/lib/Drupal/Core/File/HtaccessWriter.php Creates a .htaccess file in each Drupal files directory if it is missing.
HtaccessWriterInterface::ensure function core/lib/Drupal/Core/File/HtaccessWriterInterface.php Creates a .htaccess file in each Drupal files directory if it is missing.
ManageOptions::ensureLocations function composer/Plugin/Scaffold/ManageOptions.php Ensures that all of the locations defined in the scaffold files exist.
ManyToOne::ensureMyTable function core/modules/views/src/Plugin/views/argument/ManyToOne.php Ensures that the main table for this handler is in the query.
ManyToOne::ensureMyTable function core/modules/views/src/Plugin/views/filter/ManyToOne.php Ensures that the main table for this handler is in the query.
ManyToOneHelper::ensureMyTable function core/modules/views/src/ManyToOneHelper.php Override ensureMyTable so we can control how this joins in.
MatcherDumper::ensureTableExists function core/lib/Drupal/Core/Routing/MatcherDumper.php Checks if the tree table exists and create it if not.
MenuListBuilder::ensureDestination function core/modules/menu_ui/src/MenuListBuilder.php Ensures that a destination is present on the given URL.
MenuTreeStorage::ensureTableExists function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Checks if the tree table exists and create it if not.
MigrateSqlIdMapEnsureTablesTest class core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the SQL ID map plugin ensureTables() method.
MigrateSqlIdMapEnsureTablesTest.php file core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
MigrateSqlIdMapEnsureTablesTest::$migrationConfiguration property core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php The migration configuration, initialized to set the ID and destination IDs.
MigrateSqlIdMapEnsureTablesTest::runEnsureTablesTest function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Actually run the test.
MigrateSqlIdMapEnsureTablesTest::testEnsureTablesExist function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the ensureTables method when the tables exist.
MigrateSqlIdMapEnsureTablesTest::testEnsureTablesNotExist function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the ensureTables method when the tables do not exist.
ModerationStateJoinViewsHandlerTrait::ensureMyTable function core/modules/content_moderation/src/Plugin/views/ModerationStateJoinViewsHandlerTrait.php
ModuleExtensionList::ensureRequiredDependencies function core/lib/Drupal/Core/Extension/ModuleExtensionList.php Marks dependencies of required modules as 'required', recursively.
NegotiatorBase::ensureVersionExists function core/modules/jsonapi/src/Revisions/NegotiatorBase.php Helper method that ensures that a version exists.
PagerSelectExtender::ensureElement function core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php Ensure that there is an element associated with this query.
QueryTest::ensureTable function core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php Ensures a table exists in the queue.
Renderer::ensureMarkupIsSafe function core/lib/Drupal/Core/Render/Renderer.php Escapes #plain_text or filters #markup as required.
Schema::ensureIdentifiersLength function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Make sure to limit identifiers according to PostgreSQL compiled in length.
Schema::ensureNotNullPrimaryKey function core/lib/Drupal/Core/Database/Schema.php Ensures that all the primary key fields are correctly defined.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.