Issue #3268746 by quietone, xjm: Fix missing newlines for 'Drupal.Commenting.DocComment.ShortSingleLine'
(cherry picked from commit b6a3c63309
)
merge-requests/2320/head
parent
c858497aa0
commit
7177a7cbe1
|
@ -85,6 +85,7 @@ class Composer {
|
|||
|
||||
/**
|
||||
* Ensure that the minimum required version of Composer is running.
|
||||
*
|
||||
* Throw an exception if Composer is too old.
|
||||
*/
|
||||
public static function ensureComposerVersion(): void {
|
||||
|
|
|
@ -397,6 +397,7 @@ function template_preprocess_textarea(&$variables) {
|
|||
|
||||
/**
|
||||
* Returns HTML for a form element.
|
||||
*
|
||||
* Prepares variables for form element templates.
|
||||
*
|
||||
* Default template: form-element.html.twig.
|
||||
|
|
|
@ -19,10 +19,12 @@ class Link implements RenderableInterface {
|
|||
|
||||
/**
|
||||
* The link text for the anchor tag as a translated string or render array.
|
||||
*
|
||||
* Strings will be sanitized automatically. If you need to output HTML in
|
||||
* the link text, use a render array or an already sanitized string such as
|
||||
* the output of \Drupal\Component\Utility\Xss::filter() or
|
||||
* \Drupal\Component\Render\FormattableMarkup.
|
||||
*
|
||||
* @var string|array|\Drupal\Component\Render\MarkupInterface
|
||||
*/
|
||||
protected $text;
|
||||
|
|
|
@ -60,6 +60,7 @@ class DataType extends Plugin {
|
|||
|
||||
/**
|
||||
* The definition class to use for defining data of this type.
|
||||
*
|
||||
* Must implement the \Drupal\Core\TypedData\DataDefinitionInterface.
|
||||
*
|
||||
* @var string
|
||||
|
@ -68,6 +69,7 @@ class DataType extends Plugin {
|
|||
|
||||
/**
|
||||
* The typed data class used for wrapping multiple data items of the type.
|
||||
*
|
||||
* Must implement the \Drupal\Core\TypedData\ListInterface.
|
||||
*
|
||||
* @var string
|
||||
|
@ -76,6 +78,7 @@ class DataType extends Plugin {
|
|||
|
||||
/**
|
||||
* The definition class to use for defining a list of items of this type.
|
||||
*
|
||||
* Must implement the \Drupal\Core\TypedData\ListDataDefinitionInterface.
|
||||
*
|
||||
* @var string
|
||||
|
|
|
@ -47,6 +47,7 @@ class DrupalDateTimeTest extends BrowserTestBase {
|
|||
|
||||
/**
|
||||
* Tests that DrupalDateTime can detect the right timezone to use.
|
||||
*
|
||||
* Test with a variety of less commonly used timezone names to
|
||||
* help ensure that the system timezone will be different than the
|
||||
* stated timezones.
|
||||
|
|
|
@ -151,6 +151,7 @@ class ManyToOneHelper {
|
|||
|
||||
/**
|
||||
* Override ensureMyTable so we can control how this joins in.
|
||||
*
|
||||
* The operator actually has influence over joining.
|
||||
*/
|
||||
public function ensureMyTable() {
|
||||
|
|
|
@ -350,6 +350,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitGroupByForm(&$form, FormStateInterface $form_state) {
|
||||
|
@ -381,6 +382,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitExtraOptionsForm($form, FormStateInterface $form_state) {}
|
||||
|
@ -430,6 +432,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form exposes prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitExposeForm($form, FormStateInterface $form_state) {}
|
||||
|
@ -566,6 +569,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
|
|||
|
||||
/**
|
||||
* Define if the exposed input has to be submitted multiple times.
|
||||
*
|
||||
* This is TRUE when exposed filters grouped are using checkboxes as
|
||||
* widgets.
|
||||
*/
|
||||
|
|
|
@ -212,6 +212,7 @@ class Attachment extends DisplayPluginBase {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
|
||||
|
|
|
@ -251,6 +251,7 @@ class Block extends DisplayPluginBase {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
|
||||
|
|
|
@ -53,12 +53,14 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
|
|||
|
||||
/**
|
||||
* Indicator of the renderText() method for rendering a single item.
|
||||
*
|
||||
* (If no render_item() is present).
|
||||
*/
|
||||
const RENDER_TEXT_PHASE_SINGLE_ITEM = 0;
|
||||
|
||||
/**
|
||||
* Indicator of the renderText() method for rendering the whole element.
|
||||
*
|
||||
* (if no render_item() method is available).
|
||||
*/
|
||||
const RENDER_TEXT_PHASE_COMPLETELY = 1;
|
||||
|
|
|
@ -19,6 +19,7 @@ abstract class PrerenderList extends FieldPluginBase implements MultiItemsFieldH
|
|||
|
||||
/**
|
||||
* Stores all items which are used to render the items.
|
||||
*
|
||||
* It should be keyed first by the id of the base table, for example nid.
|
||||
* The second key is the id of the thing which is displayed multiple times
|
||||
* per row, for example the tid.
|
||||
|
|
|
@ -185,6 +185,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
|
|||
|
||||
/**
|
||||
* Determine if a filter can be converted into a group.
|
||||
*
|
||||
* Only exposed filters with operators available can be converted into groups.
|
||||
*/
|
||||
protected function canBuildGroup() {
|
||||
|
@ -200,6 +201,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
|
|||
|
||||
/**
|
||||
* Provide the basic form which calls through to subforms.
|
||||
*
|
||||
* If overridden, it is best to call through to the parent,
|
||||
* or to at least make sure all of the functions in this form
|
||||
* are called.
|
||||
|
@ -1435,6 +1437,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
|
|||
|
||||
/**
|
||||
* If set to remember exposed input in the session, store it there.
|
||||
*
|
||||
* This function is similar to storeExposedInput but modified to
|
||||
* work properly when the filter is a group.
|
||||
*/
|
||||
|
|
|
@ -973,6 +973,7 @@ class Sql extends QueryPluginBase {
|
|||
|
||||
/**
|
||||
* Add a complex HAVING clause to the query.
|
||||
*
|
||||
* The caller is responsible for ensuring that all fields are fully qualified
|
||||
* (TABLE.FIELD) and that the table and an appropriate GROUP BY already exist in the query.
|
||||
* Internally the dbtng method "having" is used.
|
||||
|
|
|
@ -94,6 +94,7 @@ class Fields extends RowPluginBase {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
|
||||
|
|
|
@ -126,6 +126,7 @@ abstract class RowPluginBase extends PluginBase {
|
|||
|
||||
/**
|
||||
* Perform any necessary changes to the form values prior to storage.
|
||||
*
|
||||
* There is no need for this function to actually store the data.
|
||||
*/
|
||||
public function submitOptionsForm(&$form, FormStateInterface $form_state) {}
|
||||
|
|
|
@ -99,6 +99,7 @@ class FetchTest extends DatabaseTestBase {
|
|||
|
||||
/**
|
||||
* Confirms that we can fetch a record into a new instance of a custom class.
|
||||
*
|
||||
* The name of the class is determined from a value of the first column.
|
||||
*
|
||||
* @see \Drupal\Tests\system\Functional\Database\FakeRecord
|
||||
|
|
|
@ -270,6 +270,7 @@ class DateTimePlusTest extends TestCase {
|
|||
|
||||
/**
|
||||
* Tests that DrupalDateTime can detect the right timezone to use.
|
||||
*
|
||||
* When specified or not.
|
||||
*
|
||||
* @param mixed $input
|
||||
|
|
Loading…
Reference in New Issue