then( spreadArgs( [ $this, 'disableTranslationEditor' ] ) ); } /** * @param bool $useEditor * @param int $postId * * @return bool */ public function disableTranslationEditor( $useEditor, $postId ) { $alreadyDisabled = ! $useEditor; return $alreadyDisabled ? false : Mode::LOCALIZATION !== Mode::getForFieldableEntity( 'post', $postId ); } }