Skip to content

Commit

Permalink
Added @SuppressWarnings(PHPMD.StaticAccess)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Fernandes committed Oct 2, 2024
1 parent aab502a commit 7178bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/themes/contrib/civictheme/includes/paragraphs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ function _civictheme_preprocess_paragraph__paragraph_field__links(array &$variab

/**
* Pre-process for Summary paragraph field.
*
* @SuppressWarnings(PHPMD.StaticAccess)
*/
function _civictheme_preprocess_paragraph__paragraph_field__summary(array &$variables): void {
$summary = civictheme_get_field_value($variables['paragraph'], 'field_c_p_summary', TRUE);
Expand All @@ -234,6 +236,8 @@ function _civictheme_preprocess_paragraph__paragraph_field__summary(array &$vari

/**
* Pre-process for Summary node field.
*
* @SuppressWarnings(PHPMD.StaticAccess)
*/
function _civictheme_preprocess_paragraph__node_field__summary(array &$variables, string $bundle = NULL): void {
$node = $variables['node'] ?? civictheme_get_field_value($variables['paragraph'], 'field_c_p_reference', TRUE);
Expand Down

0 comments on commit 7178bc2

Please sign in to comment.