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