Commit df0b92d3 authored by lauriii's avatar lauriii

Issue #2912636 by wengerk, valthebald, gido: Add @internal to schemaDefinition() methods

parent 60545700
...@@ -200,6 +200,8 @@ protected function catchException(\Exception $e) { ...@@ -200,6 +200,8 @@ protected function catchException(\Exception $e) {
/** /**
* Defines the schema for the batch table. * Defines the schema for the batch table.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
return [ return [
......
...@@ -461,6 +461,8 @@ protected function normalizeCid($cid) { ...@@ -461,6 +461,8 @@ protected function normalizeCid($cid) {
/** /**
* Defines the schema for the {cache_*} bin tables. * Defines the schema for the {cache_*} bin tables.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
$schema = [ $schema = [
......
...@@ -163,6 +163,8 @@ protected function ensureTableExists() { ...@@ -163,6 +163,8 @@ protected function ensureTableExists() {
/** /**
* Defines the schema for the {cachetags} table. * Defines the schema for the {cachetags} table.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
$schema = [ $schema = [
......
...@@ -180,6 +180,8 @@ protected function ensureTableExists() { ...@@ -180,6 +180,8 @@ protected function ensureTableExists() {
/** /**
* Defines the schema for the configuration table. * Defines the schema for the configuration table.
*
* @internal
*/ */
protected static function schemaDefinition() { protected static function schemaDefinition() {
$schema = [ $schema = [
......
...@@ -185,6 +185,8 @@ protected function catchException(\Exception $e) { ...@@ -185,6 +185,8 @@ protected function catchException(\Exception $e) {
/** /**
* Defines the schema for the flood table. * Defines the schema for the flood table.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
return [ return [
......
...@@ -239,6 +239,8 @@ protected function normalizeName($name) { ...@@ -239,6 +239,8 @@ protected function normalizeName($name) {
/** /**
* Defines the schema for the semaphore table. * Defines the schema for the semaphore table.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
return [ return [
......
...@@ -1217,6 +1217,8 @@ protected function definitionFields() { ...@@ -1217,6 +1217,8 @@ protected function definitionFields() {
* *
* @return array * @return array
* The schema API definition for the SQL storage table. * The schema API definition for the SQL storage table.
*
* @internal
*/ */
protected static function schemaDefinition() { protected static function schemaDefinition() {
$schema = [ $schema = [
......
...@@ -406,6 +406,8 @@ protected function catchException(\Exception $e) { ...@@ -406,6 +406,8 @@ protected function catchException(\Exception $e) {
/** /**
* Defines the schema for the {url_alias} table. * Defines the schema for the {url_alias} table.
*
* @internal
*/ */
public static function schemaDefinition() { public static function schemaDefinition() {
return [ return [
......
...@@ -277,6 +277,8 @@ protected function catchException(\Exception $e) { ...@@ -277,6 +277,8 @@ protected function catchException(\Exception $e) {
/** /**
* Defines the schema for the queue table. * Defines the schema for the queue table.
*
* @internal
*/ */
public function schemaDefinition() { public function schemaDefinition() {
return [ return [
......
...@@ -194,6 +194,8 @@ protected function ensureTableExists() { ...@@ -194,6 +194,8 @@ protected function ensureTableExists() {
* *
* @return array * @return array
* The schema API definition for the SQL storage table. * The schema API definition for the SQL storage table.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
$schema = [ $schema = [
......
...@@ -126,6 +126,8 @@ protected function executeView($view, array $args = []) { ...@@ -126,6 +126,8 @@ protected function executeView($view, array $args = []) {
/** /**
* Returns the schema definition. * Returns the schema definition.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
return ViewTestData::schemaDefinition(); return ViewTestData::schemaDefinition();
......
...@@ -131,6 +131,8 @@ protected function executeView(ViewExecutable $view, $args = []) { ...@@ -131,6 +131,8 @@ protected function executeView(ViewExecutable $view, $args = []) {
/** /**
* Returns the schema definition. * Returns the schema definition.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
return ViewTestData::schemaDefinition(); return ViewTestData::schemaDefinition();
......
...@@ -58,6 +58,8 @@ public static function createTestViews($class, array $modules) { ...@@ -58,6 +58,8 @@ public static function createTestViews($class, array $modules) {
/** /**
* Returns the schema definition. * Returns the schema definition.
*
* @internal
*/ */
public static function schemaDefinition() { public static function schemaDefinition() {
$schema['views_test_data'] = [ $schema['views_test_data'] = [
......
...@@ -136,6 +136,8 @@ protected function executeView(ViewExecutable $view, $args = []) { ...@@ -136,6 +136,8 @@ protected function executeView(ViewExecutable $view, $args = []) {
/** /**
* Returns the schema definition. * Returns the schema definition.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
return ViewTestData::schemaDefinition(); return ViewTestData::schemaDefinition();
......
...@@ -290,6 +290,8 @@ protected function dataSet() { ...@@ -290,6 +290,8 @@ protected function dataSet() {
/** /**
* Allow {views_test_data}.job to be NULL. * Allow {views_test_data}.job to be NULL.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
$schema = parent::schemaDefinition(); $schema = parent::schemaDefinition();
......
...@@ -39,6 +39,9 @@ public function viewsData() { ...@@ -39,6 +39,9 @@ public function viewsData() {
return $data; return $data;
} }
/**
* {@inheritdoc}
*/
protected function schemaDefinition() { protected function schemaDefinition() {
$schema = parent::schemaDefinition(); $schema = parent::schemaDefinition();
$schema['views_test_data']['fields']['description'] = [ $schema['views_test_data']['fields']['description'] = [
......
...@@ -44,6 +44,8 @@ protected function setUpFixtures() { ...@@ -44,6 +44,8 @@ protected function setUpFixtures() {
* Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition(). * Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
* *
* Adds a uid column to test the relationships. * Adds a uid column to test the relationships.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
$schema = parent::schemaDefinition(); $schema = parent::schemaDefinition();
......
...@@ -129,6 +129,8 @@ protected function executeView($view, array $args = []) { ...@@ -129,6 +129,8 @@ protected function executeView($view, array $args = []) {
/** /**
* Returns the schema definition. * Returns the schema definition.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
return ViewTestData::schemaDefinition(); return ViewTestData::schemaDefinition();
......
...@@ -42,6 +42,8 @@ protected function setUp($import_test_views = TRUE) { ...@@ -42,6 +42,8 @@ protected function setUp($import_test_views = TRUE) {
* Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition(). * Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
* *
* Adds a uid column to test the relationships. * Adds a uid column to test the relationships.
*
* @internal
*/ */
protected function schemaDefinition() { protected function schemaDefinition() {
$schema = parent::schemaDefinition(); $schema = parent::schemaDefinition();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment