| @@ 55-63 (lines=9) @@ | ||
| 52 | ); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function setObject($object) |
|
| 56 | { |
|
| 57 | if ($object instanceof DraftableEntityInterface && !$object->isDraft()) { |
|
| 58 | foreach ($this as $element) { |
|
| 59 | $element->setAttribute('disabled', 'disabled'); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | return parent::setObject($object); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| @@ 63-71 (lines=9) @@ | ||
| 60 | ); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function setObject($object) |
|
| 64 | { |
|
| 65 | if ($object instanceof DraftableEntityInterface && !$object->isDraft()) { |
|
| 66 | foreach ($this as $element) { |
|
| 67 | $element->setAttribute('disabled', 'disabled'); |
|
| 68 | } |
|
| 69 | } |
|
| 70 | return parent::setObject($object); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||