Issue #2901730 by mfernea, ankitjain28may, idebr: Fix 'Squiz.WhiteSpace.FunctionSpacing' coding standard
parent
4cf7a965e9
commit
b8f93d5b61
|
|
@ -99,7 +99,6 @@ function file_stream_wrapper_valid_scheme($scheme) {
|
||||||
return \Drupal::service('file_system')->validScheme($scheme);
|
return \Drupal::service('file_system')->validScheme($scheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the part of a URI after the schema.
|
* Returns the part of a URI after the schema.
|
||||||
*
|
*
|
||||||
|
|
@ -926,7 +925,6 @@ function file_unmanaged_delete_recursive($path, $callback = NULL) {
|
||||||
return file_unmanaged_delete($path);
|
return file_unmanaged_delete($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves an uploaded file to a new location.
|
* Moves an uploaded file to a new location.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,6 @@ function _drupal_rewrite_settings_is_simple($type, $value) {
|
||||||
return $is_integer || $is_float || $is_string || $is_boolean_or_null;
|
return $is_integer || $is_float || $is_string || $is_boolean_or_null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for drupal_rewrite_settings().
|
* Helper for drupal_rewrite_settings().
|
||||||
*
|
*
|
||||||
|
|
@ -451,7 +450,6 @@ function _drupal_rewrite_settings_dump($variable, $variable_name) {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for drupal_rewrite_settings().
|
* Helper for drupal_rewrite_settings().
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\Component\Utility\Unicode;
|
||||||
/**
|
/**
|
||||||
* Returns Unicode library status and errors.
|
* Returns Unicode library status and errors.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves unicode_requirements() logic to system_requirements().
|
* Moves unicode_requirements() logic to system_requirements().
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,6 @@ class Drupal {
|
||||||
return static::$container !== NULL;
|
return static::$container !== NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a service from the container.
|
* Retrieves a service from the container.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -333,7 +333,6 @@ class Inspector {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Asserts that all members are strings matching a regular expression.
|
* Asserts that all members are strings matching a regular expression.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,6 @@ class DateTimePlus {
|
||||||
return $format;
|
return $format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Examines getLastErrors() to see what errors to report.
|
* Examines getLastErrors() to see what errors to report.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,6 @@ class OptimizedPhpArrayDumper extends Dumper {
|
||||||
return $code;
|
return $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dumps a collection to a PHP array.
|
* Dumps a collection to a PHP array.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,6 @@ class Random {
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a placeholder image.
|
* Create a placeholder image.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\Component\Uuid;
|
||||||
* @see http://php.net/com_create_guid
|
* @see http://php.net/com_create_guid
|
||||||
*/
|
*/
|
||||||
class Com implements UuidInterface {
|
class Com implements UuidInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ class AccessResultForbidden extends AccessResult implements AccessResultReasonIn
|
||||||
$this->reason = $reason;
|
$this->reason = $reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ class CheckProvider implements CheckProviderInterface, ContainerAwareInterface {
|
||||||
|
|
||||||
return $checks;
|
return $checks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiles a mapping of requirement keys to access checker service IDs.
|
* Compiles a mapping of requirement keys to access checker service IDs.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ use Symfony\Component\Routing\RouteCollection;
|
||||||
*/
|
*/
|
||||||
interface CheckProviderInterface {
|
interface CheckProviderInterface {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For each route, saves a list of applicable access checks to the route.
|
* For each route, saves a list of applicable access checks to the route.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\Core\Ajax;
|
||||||
* @ingroup ajax
|
* @ingroup ajax
|
||||||
*/
|
*/
|
||||||
class OpenModalDialogCommand extends OpenDialogCommand {
|
class OpenModalDialogCommand extends OpenDialogCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an OpenModalDialog object.
|
* Constructs an OpenModalDialog object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,6 @@ class DatabaseStorage implements StorageInterface {
|
||||||
->execute();
|
->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements Drupal\Core\Config\StorageInterface::rename().
|
* Implements Drupal\Core\Config\StorageInterface::rename().
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ interface ThirdPartySettingsInterface {
|
||||||
*/
|
*/
|
||||||
public function getThirdPartySetting($module, $key, $default = NULL);
|
public function getThirdPartySetting($module, $key, $default = NULL);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all third-party settings of a given module.
|
* Gets all third-party settings of a given module.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ class ControllerResolver extends BaseControllerResolver implements ControllerRes
|
||||||
return $callable;
|
return $callable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,6 @@ class Connection extends DatabaseConnection {
|
||||||
return $pdo;
|
return $pdo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor for the SQLite connection.
|
* Destructor for the SQLite connection.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ use Drupal\Core\Database\Query\Select as QuerySelect;
|
||||||
* SQLite implementation of \Drupal\Core\Database\Query\Select.
|
* SQLite implementation of \Drupal\Core\Database\Query\Select.
|
||||||
*/
|
*/
|
||||||
class Select extends QuerySelect {
|
class Select extends QuerySelect {
|
||||||
|
|
||||||
public function forUpdate($set = TRUE) {
|
public function forUpdate($set = TRUE) {
|
||||||
// SQLite does not support FOR UPDATE so nothing to do.
|
// SQLite does not support FOR UPDATE so nothing to do.
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ use Drupal\Core\Database\Query\Truncate as QueryTruncate;
|
||||||
* exactly the effect (it is implemented by DROPing the table).
|
* exactly the effect (it is implemented by DROPing the table).
|
||||||
*/
|
*/
|
||||||
class Truncate extends QueryTruncate {
|
class Truncate extends QueryTruncate {
|
||||||
|
|
||||||
public function __toString() {
|
public function __toString() {
|
||||||
// Create a sanitized comment string to prepend to the query.
|
// Create a sanitized comment string to prepend to the query.
|
||||||
$comments = $this->connection->makeComment($this->comments);
|
$comments = $this->connection->makeComment($this->comments);
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,6 @@ class DateHelper {
|
||||||
return !$required ? $none + $range : $range;
|
return !$required ? $none + $range : $range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an array of hours.
|
* Constructs an array of hours.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,6 @@ class EntityRouteEnhancer implements EnhancerInterface {
|
||||||
return $defaults;
|
return $defaults;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update defaults for an entity list.
|
* Update defaults for an entity list.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -836,7 +836,6 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
|
||||||
return $this->group;
|
return $this->group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@ class Query extends QueryBase implements QueryInterface {
|
||||||
$this->connection = $connection;
|
$this->connection = $connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,6 @@ class QueryAggregate extends Query implements QueryAggregateInterface {
|
||||||
return $this->conditionAggregate->notExists($field, $function, $langcode);
|
return $this->conditionAggregate->notExists($field, $function, $langcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the aggregations to the query.
|
* Adds the aggregations to the query.
|
||||||
*
|
*
|
||||||
|
|
@ -126,7 +125,6 @@ class QueryAggregate extends Query implements QueryAggregateInterface {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overrides \Drupal\Core\Entity\Query\Sql\Query::finish().
|
* Overrides \Drupal\Core\Entity\Query\Sql\Query::finish().
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@ class ActiveLinkResponseFilter implements EventSubscriberInterface {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the "is-active" class on relevant links.
|
* Sets the "is-active" class on relevant links.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ class EnforcedFormResponseSubscriber implements EventSubscriberInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ class Fast404ExceptionHtmlSubscriber extends HttpExceptionSubscriberBase {
|
||||||
$this->httpKernel = $http_kernel;
|
$this->httpKernel = $http_kernel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,6 @@ class ModuleHandler implements ModuleHandlerInterface {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers an E_USER_DEPRECATED error if any module implements the hook.
|
* Triggers an E_USER_DEPRECATED error if any module implements the hook.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,6 @@ interface ThemeHandlerInterface {
|
||||||
*/
|
*/
|
||||||
public function listInfo();
|
public function listInfo();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a theme extension to the internal listing.
|
* Adds a theme extension to the internal listing.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,6 @@ abstract class FieldConfigBase extends ConfigEntityBase implements FieldConfigIn
|
||||||
return $changed;
|
return $changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,6 @@ class DecimalItem extends NumericItemBase {
|
||||||
return $constraints;
|
return $constraints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
@ -154,7 +153,6 @@ class DecimalItem extends NumericItemBase {
|
||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to get the number of decimal digits out of a decimal number.
|
* Helper method to get the number of decimal digits out of a decimal number.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,6 @@ class WidgetPluginManager extends DefaultPluginManager {
|
||||||
return new $plugin_class($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings']);
|
return new $plugin_class($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merges default values for widget configuration.
|
* Merges default values for widget configuration.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ abstract class ImageToolkitBase extends PluginBase implements ImageToolkitInterf
|
||||||
*/
|
*/
|
||||||
protected $logger;
|
protected $logger;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an ImageToolkitBase object.
|
* Constructs an ImageToolkitBase object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,6 @@ class InaccessibleMenuLink extends MenuLinkBase {
|
||||||
return $this->wrappedLink->getCacheMaxAge();
|
return $this->wrappedLink->getCacheMaxAge();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,6 @@ class MenuLinkManager implements MenuLinkManagerInterface {
|
||||||
*/
|
*/
|
||||||
protected $moduleHandler;
|
protected $moduleHandler;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a \Drupal\Core\Menu\MenuLinkManager object.
|
* Constructs a \Drupal\Core\Menu\MenuLinkManager object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,6 @@ class PathProcessorManager implements InboundPathProcessorInterface, OutboundPat
|
||||||
return $this->sortedInbound;
|
return $this->sortedInbound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an outbound processor object to the $outboundProcessors property.
|
* Adds an outbound processor object to the $outboundProcessors property.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ class Context extends ComponentContext implements ContextInterface {
|
||||||
return $this->contextData;
|
return $this->contextData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ class QueueFactory implements ContainerAwareInterface {
|
||||||
*/
|
*/
|
||||||
protected $settings;
|
protected $settings;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a queue factory.
|
* Constructs a queue factory.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInte
|
||||||
*/
|
*/
|
||||||
public function matchRequest(Request $request);
|
public function matchRequest(Request $request);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,6 @@ abstract class LocalReadOnlyStream extends LocalStream {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support for fwrite(), file_put_contents() etc.
|
* Support for fwrite(), file_put_contents() etc.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ class ThemeAccessCheck implements AccessInterface {
|
||||||
public function __construct(ThemeHandlerInterface $theme_handler) {
|
public function __construct(ThemeHandlerInterface $theme_handler) {
|
||||||
$this->themeHandler = $theme_handler;
|
$this->themeHandler = $theme_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks access to the theme for routing.
|
* Checks access to the theme for routing.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ class ConstraintManager extends DefaultPluginManager {
|
||||||
return $this->discovery;
|
return $this->discovery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a validation constraint.
|
* Creates a validation constraint.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,6 @@ class Item extends ContentEntityBase implements ItemInterface {
|
||||||
return Feed::load($this->getFeedId())->getCacheTags();
|
return Feed::load($this->getFeedId())->getCacheTags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Entity URI callback.
|
* Entity URI callback.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ class AggregatorFeedBlock extends BlockBase implements ContainerFactoryPluginInt
|
||||||
$this->itemStorage = $item_storage;
|
$this->itemStorage = $item_storage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
@ -71,7 +70,6 @@ class AggregatorFeedBlock extends BlockBase implements ContainerFactoryPluginInt
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ use Drupal\Core\Url;
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
class AggregatorTitleFormatter extends FormatterBase {
|
class AggregatorTitleFormatter extends FormatterBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\Tests\aggregator\Functional;
|
||||||
* @group aggregator
|
* @group aggregator
|
||||||
*/
|
*/
|
||||||
class DeleteFeedItemTest extends AggregatorTestBase {
|
class DeleteFeedItemTest extends AggregatorTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests running "delete items" from 'admin/config/services/aggregator' page.
|
* Tests running "delete items" from 'admin/config/services/aggregator' page.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\aggregator\Entity\Feed;
|
||||||
* @group aggregator
|
* @group aggregator
|
||||||
*/
|
*/
|
||||||
class UpdateFeedItemTest extends AggregatorTestBase {
|
class UpdateFeedItemTest extends AggregatorTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests running "update items" from 'admin/config/services/aggregator' page.
|
* Tests running "update items" from 'admin/config/services/aggregator' page.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\Tests\aggregator\Functional;
|
||||||
* @group aggregator
|
* @group aggregator
|
||||||
*/
|
*/
|
||||||
class UpdateFeedTest extends AggregatorTestBase {
|
class UpdateFeedTest extends AggregatorTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a feed and attempts to update it.
|
* Creates a feed and attempts to update it.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,6 @@ class BlockAccessControlHandler extends EntityAccessControlHandler implements En
|
||||||
$this->contextRepository = $context_repository;
|
$this->contextRepository = $context_repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ class BlockContentFieldFilterTest extends BlockContentTestBase {
|
||||||
*/
|
*/
|
||||||
public $blockContentInfos = [];
|
public $blockContentInfos = [];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,6 @@ interface BookOutlineStorageInterface {
|
||||||
*/
|
*/
|
||||||
public function insert($link, $parents);
|
public function insert($link, $parents);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates book reference for links that were moved between books.
|
* Updates book reference for links that were moved between books.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ use Drupal\node\Entity\Node;
|
||||||
* @group comment
|
* @group comment
|
||||||
*/
|
*/
|
||||||
class CommentPagerTest extends CommentTestBase {
|
class CommentPagerTest extends CommentTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Confirms comment paging works correctly with flat and threaded comments.
|
* Confirms comment paging works correctly with flat and threaded comments.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\comment\CommentManagerInterface;
|
||||||
* @group comment
|
* @group comment
|
||||||
*/
|
*/
|
||||||
class CommentThreadingTest extends CommentTestBase {
|
class CommentThreadingTest extends CommentTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the comment threading.
|
* Tests the comment threading.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ namespace Drupal\Tests\comment\Functional;
|
||||||
* @group comment
|
* @group comment
|
||||||
*/
|
*/
|
||||||
class CommentTitleTest extends CommentTestBase {
|
class CommentTitleTest extends CommentTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests markup for comments with empty titles.
|
* Tests markup for comments with empty titles.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ class CommentUninstallTest extends BrowserTestBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests if uninstallation succeeds if the field has been deleted beforehand.
|
* Tests if uninstallation succeeds if the field has been deleted beforehand.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ class CommentRestExportTest extends CommentTestBase {
|
||||||
$this->drupalLogin($user);
|
$this->drupalLogin($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test comment row.
|
* Test comment row.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ class WizardTest extends WizardTestBase {
|
||||||
*/
|
*/
|
||||||
public static $modules = ['node', 'comment'];
|
public static $modules = ['node', 'comment'];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,9 @@ class CommentLinkBuilderTest extends UnitTestCase {
|
||||||
namespace Drupal\comment;
|
namespace Drupal\comment;
|
||||||
|
|
||||||
if (!function_exists('history_read')) {
|
if (!function_exists('history_read')) {
|
||||||
|
|
||||||
function history_read() {
|
function history_read() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ class ConfigInstallProfileUnmetDependenciesTest extends InstallerTestBase {
|
||||||
// This step is not reached due to the exception.
|
// This step is not reached due to the exception.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Confirms that the installation succeeded.
|
* Confirms that the installation succeeded.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ class ConfigInstallProfileOverrideTest extends BrowserTestBase {
|
||||||
*/
|
*/
|
||||||
protected $profile = 'testing_config_overrides';
|
protected $profile = 'testing_config_overrides';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests install profile config changes.
|
* Tests install profile config changes.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ function contact_storage_test_entity_base_field_info(EntityTypeInterface $entity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_entity_type_alter().
|
* Implements hook_entity_type_alter().
|
||||||
*/
|
*/
|
||||||
|
|
@ -56,6 +55,7 @@ function contact_storage_test_form_contact_form_form_alter(&$form, FormStateInte
|
||||||
];
|
];
|
||||||
$form['#entity_builders'][] = 'contact_storage_test_contact_form_form_builder';
|
$form['#entity_builders'][] = 'contact_storage_test_contact_form_form_builder';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Entity builder for the contact form edit form with third party options.
|
* Entity builder for the contact form edit form with third party options.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,6 @@ class EntityTypeInfo implements ContainerInjectionInterface {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds Moderation configuration to appropriate entity types.
|
* Adds Moderation configuration to appropriate entity types.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,7 @@ function _content_translation_form_language_content_settings_form_alter(array &$
|
||||||
$form['#validate'][] = 'content_translation_form_language_content_settings_validate';
|
$form['#validate'][] = 'content_translation_form_language_content_settings_validate';
|
||||||
$form['#submit'][] = 'content_translation_form_language_content_settings_submit';
|
$form['#submit'][] = 'content_translation_form_language_content_settings_submit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether translatability should be configurable for a field.
|
* Checks whether translatability should be configurable for a field.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,6 @@ class Standard extends Xss implements EditorXssFilterInterface {
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all allowed tags from a restrictions data structure.
|
* Get all allowed tags from a restrictions data structure.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@
|
||||||
* @see plugin_api
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform alterations on Field API field types.
|
* Perform alterations on Field API field types.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,6 @@ class FieldUninstallValidator implements ModuleUninstallValidatorInterface {
|
||||||
return $this->fieldStorageConfigStorage->loadByProperties(['module' => $module, 'include_deleted' => TRUE]);
|
return $this->fieldStorageConfigStorage->loadByProperties(['module' => $module, 'include_deleted' => TRUE]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the label for a specified field type.
|
* Returns the label for a specified field type.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,6 @@ function field_test_field_widget_multivalue_test_field_widget_multiple_single_va
|
||||||
_field_test_alter_widget("hook_field_widget_multivalue_WIDGET_TYPE_form_alter", $elements, $form_state, $context);
|
_field_test_alter_widget("hook_field_widget_multivalue_WIDGET_TYPE_form_alter", $elements, $form_state, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up alterations for widget alter tests.
|
* Sets up alterations for widget alter tests.
|
||||||
*
|
*
|
||||||
|
|
@ -164,7 +163,6 @@ function field_test_query_efq_table_prefixing_test_alter(&$query) {
|
||||||
$query->join('entity_test', 'et2', '%alias.id = entity_test.id');
|
$query->join('entity_test', 'et2', '%alias.id = entity_test.id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
|
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,6 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase {
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the referenced entity.
|
* Create the referenced entity.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,6 @@ class EntityReferenceFormatterTest extends EntityKernelTestBase {
|
||||||
$this->assertEquals($expected_occurrences, $actual_occurrences);
|
$this->assertEquals($expected_occurrences, $actual_occurrences);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the label formatter.
|
* Tests the label formatter.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ class File extends DrupalSqlBase {
|
||||||
'is_public' => $this->t('TRUE if the files directory is public otherwise FALSE.'),
|
'is_public' => $this->t('TRUE if the files directory is public otherwise FALSE.'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\file\Tests;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class DownloadTest extends FileManagedTestBase {
|
class DownloadTest extends FileManagedTestBase {
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
// Clear out any hook calls.
|
// Clear out any hook calls.
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class FileFieldPathTest extends FileFieldTestBase {
|
class FileFieldPathTest extends FileFieldTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the normal formatter display on node display.
|
* Tests the normal formatter display on node display.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class FileFieldRevisionTest extends FileFieldTestBase {
|
class FileFieldRevisionTest extends FileFieldTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests creating multiple revisions of a node and managing attached files.
|
* Tests creating multiple revisions of a node and managing attached files.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ namespace Drupal\file\Tests;
|
||||||
* that aren't related to fields into it.
|
* that aren't related to fields into it.
|
||||||
*/
|
*/
|
||||||
class FileManagedFileElementTest extends FileFieldTestBase {
|
class FileManagedFileElementTest extends FileFieldTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the managed_file element type.
|
* Tests the managed_file element type.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class FileTokenReplaceTest extends FileFieldTestBase {
|
class FileTokenReplaceTest extends FileFieldTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a file, then tests the tokens generated from it.
|
* Creates a file, then tests the tokens generated from it.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class CopyTest extends FileManagedUnitTestBase {
|
class CopyTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test file copying in the normal, base case.
|
* Test file copying in the normal, base case.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class DeleteTest extends FileManagedUnitTestBase {
|
class DeleteTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tries deleting a normal file (as opposed to a directory, symlink, etc).
|
* Tries deleting a normal file (as opposed to a directory, symlink, etc).
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class LoadTest extends FileManagedUnitTestBase {
|
class LoadTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to load a non-existent file by fid.
|
* Try to load a non-existent file by fid.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class MoveTest extends FileManagedUnitTestBase {
|
class MoveTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Move a normal file.
|
* Move a normal file.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class SaveDataTest extends FileManagedUnitTestBase {
|
class SaveDataTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the file_save_data() function when no filename is provided.
|
* Test the file_save_data() function when no filename is provided.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class SaveTest extends FileManagedUnitTestBase {
|
class SaveTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
public function testFileSave() {
|
public function testFileSave() {
|
||||||
// Create a new file entity.
|
// Create a new file entity.
|
||||||
$file = File::create([
|
$file = File::create([
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ use Drupal\file\Entity\File;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class SpaceUsedTest extends FileManagedUnitTestBase {
|
class SpaceUsedTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ use Drupal\node\Entity\NodeType;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class UsageTest extends FileManagedUnitTestBase {
|
class UsageTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
|
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace Drupal\Tests\file\Kernel;
|
||||||
* @group file
|
* @group file
|
||||||
*/
|
*/
|
||||||
class ValidateTest extends FileManagedUnitTestBase {
|
class ValidateTest extends FileManagedUnitTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that the validators passed into are checked.
|
* Test that the validators passed into are checked.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,6 @@ class ValidatorTest extends FileManagedUnitTestBase {
|
||||||
$this->assertEqual(count($errors), 1, 'An error reported for 0 length filename.', 'File');
|
$this->assertEqual(count($errors), 1, 'An error reported for 0 length filename.', 'File');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test file_validate_size().
|
* Test file_validate_size().
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,6 @@ class FilterKernelTest extends KernelTestBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests filter settings, defaults, access restrictions and similar.
|
* Tests filter settings, defaults, access restrictions and similar.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ class ForumIntegrationTest extends ViewTestBase {
|
||||||
ViewTestData::createTestViews(get_class($this), ['forum_test_views']);
|
ViewTestData::createTestViews(get_class($this), ['forum_test_views']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the integration.
|
* Tests the integration.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ function hook_hal_type_uri_alter(&$uri, $context = []) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alter the HAL relation URI.
|
* Alter the HAL relation URI.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,6 @@ class EntityReferenceItemNormalizer extends FieldItemNormalizer implements UuidR
|
||||||
return $normalized;
|
return $normalized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ class FileNormalizeTest extends NormalizerTestBase {
|
||||||
$this->installEntitySchema('file');
|
$this->installEntitySchema('file');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the normalize function.
|
* Tests the normalize function.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||||
*/
|
*/
|
||||||
interface HelpSectionPluginInterface extends PluginInspectionInterface, CacheableDependencyInterface {
|
interface HelpSectionPluginInterface extends PluginInspectionInterface, CacheableDependencyInterface {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the title of the help section.
|
* Returns the title of the help section.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ use Drupal\help\Plugin\HelpSection\HelpSectionPluginBase;
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
class EmptyHelpSection extends HelpSectionPluginBase {
|
class EmptyHelpSection extends HelpSectionPluginBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ class ImageStyleDeleteForm extends EntityDeleteForm {
|
||||||
public function getQuestion() {
|
public function getQuestion() {
|
||||||
return $this->t('Optionally select a style before deleting %style', ['%style' => $this->entity->label()]);
|
return $this->t('Optionally select a style before deleting %style', ['%style' => $this->entity->label()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ interface ImageStyleInterface extends ConfigEntityInterface {
|
||||||
*/
|
*/
|
||||||
public function setName($name);
|
public function setName($name);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the URI of this image when using this style.
|
* Returns the URI of this image when using this style.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ class NegotiationBrowserDeleteForm extends ConfirmFormBase {
|
||||||
return ['language.mappings'];
|
return ['language.mappings'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ class PathProcessorLanguage implements InboundPathProcessorInterface, OutboundPa
|
||||||
*/
|
*/
|
||||||
protected $configSubscriber;
|
protected $configSubscriber;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a PathProcessorLanguage object.
|
* Constructs a PathProcessorLanguage object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ class LanguageBlock extends BlockBase implements ContainerFactoryPluginInterface
|
||||||
$this->pathMatcher = $path_matcher;
|
$this->pathMatcher = $path_matcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
@ -71,7 +70,6 @@ class LanguageBlock extends BlockBase implements ContainerFactoryPluginInterface
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ class MigrateLanguageContentSettingsTest extends MigrateDrupal7TestBase {
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public static $modules = ['node', 'text', 'language', 'content_translation', 'menu_ui'];
|
public static $modules = ['node', 'text', 'language', 'content_translation', 'menu_ui'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,9 @@ class LanguageNegotiationUrlTest extends UnitTestCase {
|
||||||
namespace Drupal\language\Plugin\LanguageNegotiation;
|
namespace Drupal\language\Plugin\LanguageNegotiation;
|
||||||
|
|
||||||
if (!function_exists('base_path')) {
|
if (!function_exists('base_path')) {
|
||||||
|
|
||||||
function base_path() {
|
function base_path() {
|
||||||
return '/';
|
return '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -398,7 +398,6 @@ class LinkWidget extends WidgetBase {
|
||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue