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
10cfcd6a
Commit
10cfcd6a
authored
Oct 05, 2014
by
alexpott
Browse files
Issue
#2302021
by swentel, yched, undertext: Move options.module widgets in Core.
parent
84cad37f
Changes
13
Hide whitespace changes
Inline
Side-by-side
core/
modules/options/src
/Plugin/Field/FieldWidget/ButtonsWidget.php
→
core/
lib/Drupal/Core/Field
/Plugin/Field/FieldWidget/
Options
ButtonsWidget.php
View file @
10cfcd6a
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
options
\Plugin\Field\FieldWidget\ButtonsWidget.
* Contains \Drupal\
Core\Field
\Plugin\Field\FieldWidget\
Options
ButtonsWidget.
*/
namespace
Drupal\
options
\Plugin\Field\FieldWidget
;
namespace
Drupal\
Core\Field
\Plugin\Field\FieldWidget
;
use
Drupal\Core\Field\FieldItemListInterface
;
use
Drupal\Core\Form\FormStateInterface
;
...
...
@@ -25,7 +25,7 @@
* multiple_values = TRUE
* )
*/
class
ButtonsWidget
extends
OptionsWidgetBase
{
class
Options
ButtonsWidget
extends
OptionsWidgetBase
{
/**
* {@inheritdoc}
...
...
core/
modules/options/src
/Plugin/Field/FieldWidget/SelectWidget.php
→
core/
lib/Drupal/Core/Field
/Plugin/Field/FieldWidget/
Options
SelectWidget.php
View file @
10cfcd6a
...
...
@@ -2,14 +2,13 @@
/**
* @file
* Contains \Drupal\
options
\Plugin\Field\FieldWidget\SelectWidget.
* Contains \Drupal\
Core\Field
\Plugin\Field\FieldWidget\
Options
SelectWidget.
*/
namespace
Drupal\
options
\Plugin\Field\FieldWidget
;
namespace
Drupal\
Core\Field
\Plugin\Field\FieldWidget
;
use
Drupal\Core\Field\FieldItemListInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\options\Plugin\Field\FieldWidget\OptionsWidgetBase
;
/**
* Plugin implementation of the 'options_select' widget.
...
...
@@ -25,7 +24,7 @@
* multiple_values = TRUE
* )
*/
class
SelectWidget
extends
OptionsWidgetBase
{
class
Options
SelectWidget
extends
OptionsWidgetBase
{
/**
* {@inheritdoc}
...
...
core/
modules/options/src
/Plugin/Field/FieldWidget/OptionsWidgetBase.php
→
core/
lib/Drupal/Core/Field
/Plugin/Field/FieldWidget/OptionsWidgetBase.php
View file @
10cfcd6a
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
options
\Plugin\Field\FieldWidget\OptionsWidgetBase.
* Contains \Drupal\
Core\Field
\Plugin\Field\FieldWidget\OptionsWidgetBase.
*/
namespace
Drupal\
options
\Plugin\Field\FieldWidget
;
namespace
Drupal\
Core\Field
\Plugin\Field\FieldWidget
;
use
Drupal\Core\Entity\FieldableEntityInterface
;
use
Drupal\Core\Field\FieldDefinitionInterface
;
...
...
core/modules/entity_reference/src/Tests/EntityReferenceFieldDefaultValueTest.php
View file @
10cfcd6a
...
...
@@ -21,7 +21,7 @@ class EntityReferenceFieldDefaultValueTest extends WebTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'entity_reference'
,
'field_ui'
,
'node'
,
'options'
);
public
static
$modules
=
array
(
'entity_reference'
,
'field_ui'
,
'node'
);
protected
function
setUp
()
{
parent
::
setUp
();
...
...
core/modules/entity_reference/src/Tests/EntityReferenceIntegrationTest.php
View file @
10cfcd6a
...
...
@@ -42,7 +42,7 @@ class EntityReferenceIntegrationTest extends WebTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'config_test'
,
'entity_test'
,
'entity_reference'
,
'options'
);
public
static
$modules
=
array
(
'config_test'
,
'entity_test'
,
'entity_reference'
);
/**
* {@inheritdoc}
...
...
core/modules/entity_reference/src/Tests/EntityReferenceItemTest.php
View file @
10cfcd6a
...
...
@@ -24,7 +24,7 @@ class EntityReferenceItemTest extends FieldUnitTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'entity_reference'
,
'taxonomy'
,
'options'
,
'text'
,
'filter'
);
public
static
$modules
=
array
(
'entity_reference'
,
'taxonomy'
,
'text'
,
'filter'
);
/**
* The taxonomy vocabulary to test with.
...
...
core/modules/entity_reference/src/Tests/Views/EntityReferenceRelationshipTest.php
View file @
10cfcd6a
...
...
@@ -34,7 +34,7 @@ class EntityReferenceRelationshipTest extends ViewUnitTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'user'
,
'field'
,
'entity_test'
,
'options'
,
'entity_reference'
,
'views'
,
'entity_reference_test_views'
);
public
static
$modules
=
array
(
'user'
,
'field'
,
'entity_test'
,
'entity_reference'
,
'views'
,
'entity_reference_test_views'
);
/**
* The entity_test entities used by the test.
...
...
core/modules/rdf/src/Tests/Field/EntityReferenceRdfaTest.php
View file @
10cfcd6a
...
...
@@ -46,7 +46,7 @@ class EntityReferenceRdfaTest extends FieldRdfaTestBase {
/**
* {@inheritdoc}
*/
public
static
$modules
=
array
(
'entity'
,
'entity_reference'
,
'options'
,
'text'
,
'filter'
);
public
static
$modules
=
array
(
'entity'
,
'entity_reference'
,
'text'
,
'filter'
);
protected
function
setUp
()
{
parent
::
setUp
();
...
...
core/modules/rdf/src/Tests/Field/TaxonomyTermReferenceRdfaTest.php
View file @
10cfcd6a
...
...
@@ -39,7 +39,7 @@ class TaxonomyTermReferenceRdfaTest extends FieldRdfaTestBase {
/**
* {@inheritdoc}
*/
public
static
$modules
=
array
(
'taxonomy'
,
'options'
,
'text'
,
'filter'
);
public
static
$modules
=
array
(
'taxonomy'
,
'text'
,
'filter'
);
protected
function
setUp
()
{
parent
::
setUp
();
...
...
core/modules/system/src/Tests/Entity/EntityQueryRelationshipTest.php
View file @
10cfcd6a
...
...
@@ -19,7 +19,7 @@ class EntityQueryRelationshipTest extends EntityUnitTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'taxonomy'
,
'options'
);
public
static
$modules
=
array
(
'taxonomy'
);
/**
* @var \Drupal\Core\Entity\Query\QueryFactory
...
...
core/modules/taxonomy/src/Tests/TaxonomyTermReferenceItemTest.php
View file @
10cfcd6a
...
...
@@ -25,7 +25,7 @@ class TaxonomyTermReferenceItemTest extends FieldUnitTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'taxonomy'
,
'entity_reference'
,
'options'
,
'text'
,
'filter'
);
public
static
$modules
=
array
(
'taxonomy'
,
'entity_reference'
,
'text'
,
'filter'
);
/**
* The term entity.
...
...
core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
View file @
10cfcd6a
...
...
@@ -22,7 +22,7 @@ class TaxonomyFieldFilterTest extends ViewTestBase {
/**
* {@inheritdoc}
*/
public
static
$modules
=
array
(
'language'
,
'taxonomy'
,
'taxonomy_test_views'
,
'text'
,
'views'
,
'node'
,
'options'
);
public
static
$modules
=
array
(
'language'
,
'taxonomy'
,
'taxonomy_test_views'
,
'text'
,
'views'
,
'node'
);
/**
* Views used by this test.
...
...
core/modules/taxonomy/taxonomy.info.yml
View file @
10cfcd6a
...
...
@@ -6,6 +6,5 @@ version: VERSION
core
:
8.x
dependencies
:
-
node
-
options
-
text
configure
:
taxonomy.vocabulary_list
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