Commit 99c0b887 authored by alexpott's avatar alexpott

Issue #2594041 by krknth, Chi: Coding standards - replace array() with array in return values

parent 805e1d6d
...@@ -39,7 +39,7 @@ public function settingsForm(array $form, FormStateInterface $form_state); ...@@ -39,7 +39,7 @@ public function settingsForm(array $form, FormStateInterface $form_state);
* If an empty result is returned, a UI can still be provided to display * If an empty result is returned, a UI can still be provided to display
* a settings form in case the formatter has configurable settings. * a settings form in case the formatter has configurable settings.
* *
* @return array() * @return string[]
* A short summary of the formatter settings. * A short summary of the formatter settings.
*/ */
public function settingsSummary(); public function settingsSummary();
......
...@@ -72,8 +72,8 @@ function block_content_entity_type_alter(array &$entity_types) { ...@@ -72,8 +72,8 @@ function block_content_entity_type_alter(array &$entity_types) {
* @param string $label * @param string $label
* (optional) The label for the body instance. Defaults to 'Body' * (optional) The label for the body instance. Defaults to 'Body'
* *
* @return array() * @return \Drupal\field\Entity\FieldConfig
* Body field. * A Body field object.
*/ */
function block_content_add_body_field($block_type_id, $label = 'Body') { function block_content_add_body_field($block_type_id, $label = 'Body') {
// Add or remove the body field, as needed. // Add or remove the body field, as needed.
......
...@@ -316,7 +316,8 @@ function node_type_load($name) { ...@@ -316,7 +316,8 @@ function node_type_load($name) {
* @param string $label * @param string $label
* (optional) The label for the body instance. * (optional) The label for the body instance.
* *
* @return \Drupal\field\Entity\FieldConfig Body field. * @return \Drupal\field\Entity\FieldConfig
* A Body field object.
*/ */
function node_add_body_field(NodeTypeInterface $type, $label = 'Body') { function node_add_body_field(NodeTypeInterface $type, $label = 'Body') {
// Add or remove the body field, as needed. // Add or remove the body field, as needed.
......
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