Skip to content

Commit

Permalink
fix(YSP-559): fix PHP default param deprecation
Browse files Browse the repository at this point in the history
Looking at the Drupal 10 options_allowed_values signature, $cachable
isn't even there.  This is an attempt to allow this to play nice and not
throw an error or deprecation warning.
  • Loading branch information
dblanken-yale committed Sep 30, 2024
1 parent 489c9d5 commit 25c17f1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ use Drupal\field\Entity\FieldStorageConfig;
* The field definition.
* @param \Drupal\Core\Entity\ContentEntityInterface|null $entity
* The entity being created, if applicable.
* @param bool $cacheable
* Boolean indicating if the results are cache-able.
*
* @return array
* An array of possible key and value options.
*
* @see options_allowed_values()
*/
function ys_themes_allowed_values_function(FieldStorageConfig $definition, ?ContentEntityInterface $entity = NULL, $cacheable) {
function ys_themes_allowed_values_function(FieldStorageConfig $definition, ?ContentEntityInterface $entity = NULL) {
$options = [];
$config = \Drupal::config('ys_themes.component_overrides');

Expand Down

0 comments on commit 25c17f1

Please sign in to comment.