Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
df0b92d3
Commit
df0b92d3
authored
Sep 29, 2017
by
lauriii
Browse files
Issue
#2912636
by wengerk, valthebald, gido: Add @internal to schemaDefinition() methods
parent
60545700
Changes
19
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Batch/BatchStorage.php
View file @
df0b92d3
...
...
@@ -200,6 +200,8 @@ protected function catchException(\Exception $e) {
/**
* Defines the schema for the batch table.
*
* @internal
*/
public
function
schemaDefinition
()
{
return
[
...
...
core/lib/Drupal/Core/Cache/DatabaseBackend.php
View file @
df0b92d3
...
...
@@ -461,6 +461,8 @@ protected function normalizeCid($cid) {
/**
* Defines the schema for the {cache_*} bin tables.
*
* @internal
*/
public
function
schemaDefinition
()
{
$schema
=
[
...
...
core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
View file @
df0b92d3
...
...
@@ -163,6 +163,8 @@ protected function ensureTableExists() {
/**
* Defines the schema for the {cachetags} table.
*
* @internal
*/
public
function
schemaDefinition
()
{
$schema
=
[
...
...
core/lib/Drupal/Core/Config/DatabaseStorage.php
View file @
df0b92d3
...
...
@@ -180,6 +180,8 @@ protected function ensureTableExists() {
/**
* Defines the schema for the configuration table.
*
* @internal
*/
protected
static
function
schemaDefinition
()
{
$schema
=
[
...
...
core/lib/Drupal/Core/Flood/DatabaseBackend.php
View file @
df0b92d3
...
...
@@ -185,6 +185,8 @@ protected function catchException(\Exception $e) {
/**
* Defines the schema for the flood table.
*
* @internal
*/
public
function
schemaDefinition
()
{
return
[
...
...
core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
View file @
df0b92d3
...
...
@@ -239,6 +239,8 @@ protected function normalizeName($name) {
/**
* Defines the schema for the semaphore table.
*
* @internal
*/
public
function
schemaDefinition
()
{
return
[
...
...
core/lib/Drupal/Core/Menu/MenuTreeStorage.php
View file @
df0b92d3
...
...
@@ -1217,6 +1217,8 @@ protected function definitionFields() {
*
* @return array
* The schema API definition for the SQL storage table.
*
* @internal
*/
protected
static
function
schemaDefinition
()
{
$schema
=
[
...
...
core/lib/Drupal/Core/Path/AliasStorage.php
View file @
df0b92d3
...
...
@@ -406,6 +406,8 @@ protected function catchException(\Exception $e) {
/**
* Defines the schema for the {url_alias} table.
*
* @internal
*/
public
static
function
schemaDefinition
()
{
return
[
...
...
core/lib/Drupal/Core/Queue/DatabaseQueue.php
View file @
df0b92d3
...
...
@@ -277,6 +277,8 @@ protected function catchException(\Exception $e) {
/**
* Defines the schema for the queue table.
*
* @internal
*/
public
function
schemaDefinition
()
{
return
[
...
...
core/lib/Drupal/Core/Routing/MatcherDumper.php
View file @
df0b92d3
...
...
@@ -194,6 +194,8 @@ protected function ensureTableExists() {
*
* @return array
* The schema API definition for the SQL storage table.
*
* @internal
*/
protected
function
schemaDefinition
()
{
$schema
=
[
...
...
core/modules/views/src/Tests/ViewKernelTestBase.php
View file @
df0b92d3
...
...
@@ -126,6 +126,8 @@ protected function executeView($view, array $args = []) {
/**
* Returns the schema definition.
*
* @internal
*/
protected
function
schemaDefinition
()
{
return
ViewTestData
::
schemaDefinition
();
...
...
core/modules/views/src/Tests/ViewTestBase.php
View file @
df0b92d3
...
...
@@ -131,6 +131,8 @@ protected function executeView(ViewExecutable $view, $args = []) {
/**
* Returns the schema definition.
*
* @internal
*/
protected
function
schemaDefinition
()
{
return
ViewTestData
::
schemaDefinition
();
...
...
core/modules/views/src/Tests/ViewTestData.php
View file @
df0b92d3
...
...
@@ -58,6 +58,8 @@ public static function createTestViews($class, array $modules) {
/**
* Returns the schema definition.
*
* @internal
*/
public
static
function
schemaDefinition
()
{
$schema
[
'views_test_data'
]
=
[
...
...
core/modules/views/tests/src/Functional/ViewTestBase.php
View file @
df0b92d3
...
...
@@ -136,6 +136,8 @@ protected function executeView(ViewExecutable $view, $args = []) {
/**
* Returns the schema definition.
*
* @internal
*/
protected
function
schemaDefinition
()
{
return
ViewTestData
::
schemaDefinition
();
...
...
core/modules/views/tests/src/Kernel/Handler/FilterCombineTest.php
View file @
df0b92d3
...
...
@@ -290,6 +290,8 @@ protected function dataSet() {
/**
* Allow {views_test_data}.job to be NULL.
*
* @internal
*/
protected
function
schemaDefinition
()
{
$schema
=
parent
::
schemaDefinition
();
...
...
core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
View file @
df0b92d3
...
...
@@ -39,6 +39,9 @@ public function viewsData() {
return
$data
;
}
/**
* {@inheritdoc}
*/
protected
function
schemaDefinition
()
{
$schema
=
parent
::
schemaDefinition
();
$schema
[
'views_test_data'
][
'fields'
][
'description'
]
=
[
...
...
core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
View file @
df0b92d3
...
...
@@ -44,6 +44,8 @@ protected function setUpFixtures() {
* Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
*
* Adds a uid column to test the relationships.
*
* @internal
*/
protected
function
schemaDefinition
()
{
$schema
=
parent
::
schemaDefinition
();
...
...
core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
View file @
df0b92d3
...
...
@@ -129,6 +129,8 @@ protected function executeView($view, array $args = []) {
/**
* Returns the schema definition.
*
* @internal
*/
protected
function
schemaDefinition
()
{
return
ViewTestData
::
schemaDefinition
();
...
...
core/modules/views_ui/tests/src/Functional/HandlerTest.php
View file @
df0b92d3
...
...
@@ -42,6 +42,8 @@ protected function setUp($import_test_views = TRUE) {
* Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
*
* Adds a uid column to test the relationships.
*
* @internal
*/
protected
function
schemaDefinition
()
{
$schema
=
parent
::
schemaDefinition
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment