Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | private function isOperationAttributeDisabled(array $attributes, string $attribute, bool $default = false, bool $resourceFallback = true): bool |
||
26 | { |
||
27 | if (null === $this->resourceMetadataFactory) { |
||
28 | return $default; |
||
29 | } |
||
30 | |||
31 | $resourceMetadata = $this->resourceMetadataFactory->create($attributes['resource_class']); |
||
32 | |||
33 | return !((bool) $resourceMetadata->getOperationAttribute($attributes, $attribute, !$default, $resourceFallback)); |
||
34 | } |
||
36 |